package com.service;

import com.controller.FurniturePageResponse;
import com.entity.HyFurniture;
import com.entity.HyFurnitureImage;

import java.util.List;

/**
 * 家具列表Service接口
 * 
 * @author 白杨
 * @date 2025-02-14
 */
public interface HyFurnitureService
{
    int addFurniture(HyFurniture hyFurniture);

    int deleteFurniture(Long id);

    int updateFurniture(HyFurniture hyFurniture);



    int addFurnitureImage(HyFurnitureImage hyFurnitureImage);

    int deleteFurnitureImage(Long id);

    List<HyFurnitureImage> getFurnitureImages(Long furnitureId);

    List<HyFurniture> getFurnitureByCategory(Long categoryId);

    List<HyFurniture> findFurnitureByRegionId(Long categoryId);

    // 根据家具 ID 获取家具信息
    HyFurniture getFurnitureById(Long id);
    // 更新库存
    boolean updateStock(Long furnitureId, int quantity);
    // 获取所有家具信息
    List<HyFurniture> getAllFurniture();


    FurniturePageResponse getFurnitureWithImages(int pageNum, int pageSize);

    HyFurniture selectHyFurnitureById(Long furnitureId);
}
